package simulator.queue;

public class Event  
{
	public static final int TYPE_QUEUE1_ARRIVE = 0;
	public static final int TYPE_QUEUE2_ARRIVE = 1;
	public static final int TYPE_SERVER_ARRIVE = 2;
	public static final int TYPE_QUEUE1_EXIT = 3;
	public static final int TYPE_QUEUE2_EXIT = 4;
	public static final int TYPE_EXIT_SERVER = 5;
	public static final int TYPE_INTERRUPTION = 6;
	public static final int TYPE_EXIT_SYSTEM = 7;
	
	private final int id;
	private final double time;
	private final int type;
	private final Item item;
	
	public Event(int id, double time, int type, Item item) 
	{
		this.id = id;
		this.time = time;
		this.type = type;
		this.item = item;
	}

	public int getId() {
		return id;
	}

	public double getTime() {
		return time;
	}

	public int getType() {
		return type;
	}

	public Item getItem() {
		return item;
	}
}
